﻿using System.ComponentModel.DataAnnotations;
using Yz.Base;

namespace Yz.Model.Entities
{
    /// <summary>
    /// 管理员信息表
    /// </summary>
    public class Admin : BaseEntity
    {
        /// <summary>
        /// 登录名
        /// </summary>
        [MaxLength(15)]
        public string LoginName { set; get; }
        /// <summary>
        /// 密码
        /// </summary>
        [MaxLength(60)]
        public string PassWord { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public StatusType State { get; set; } = StatusType.Enable;
    }
}
